package practise.mulitThreads.EventSystem.entity;

/**
 * Created by angela on 7/27/2014.
 */
public class Event {
    private static Long eventNumber = 0l;
    Long id;
    Long timestamp;
    String message;

    public Event(Long timestamp, String message) {
        eventNumber++;
        this.id = eventNumber;
        this.timestamp = timestamp;
        this.message = message;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
